Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create separate timer for redraw requests #8023

Merged
merged 2 commits into from
Aug 21, 2023
Merged

create separate timer for redraw requests #8023

merged 2 commits into from
Aug 21, 2023

Conversation

pascalkuthe
Copy link
Member

The redraw handle was using the idle timeout to denounce redraw requests so far. I will openly admit that I didn't quite appreciate the importance of the idle timeout back when I wrote the diff gutter PR (as I was still new to the codebase). It didn't really matter back then because the diff gutter timing out is a very rare occurrence but with #7538 the redraw handle is now triggered quite commonly which essentially makes the idle-timeout setting useless.

This PR fixes that by simply adding a separate timer for the redraw handle. In the long term we may move away from using the idle-timeout for debouncing data model update (#8021) at which point it would be fine to switch back to the idle timeout. Until all of that (substantial) work is finished I think its a good idea to fix this in the meantime (especially looking toward the next release).

@pascalkuthe pascalkuthe added C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer. labels Aug 20, 2023
@pascalkuthe pascalkuthe added this to the next milestone Aug 20, 2023
@pascalkuthe
Copy link
Member Author

(Added to next because this is a regression)

@archseer archseer merged commit e5f8d8e into master Aug 21, 2023
6 checks passed
@archseer archseer deleted the fix_idle_timeout branch August 21, 2023 21:24
dgkf pushed a commit to dgkf/helix that referenced this pull request Jan 30, 2024
* create separate timer for redraw requests

* Update helix-view/src/editor.rs

Co-authored-by: Michael Davis <[email protected]>

---------

Co-authored-by: Michael Davis <[email protected]>
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
* create separate timer for redraw requests

* Update helix-view/src/editor.rs

Co-authored-by: Michael Davis <[email protected]>

---------

Co-authored-by: Michael Davis <[email protected]>
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
* create separate timer for redraw requests

* Update helix-view/src/editor.rs

Co-authored-by: Michael Davis <[email protected]>

---------

Co-authored-by: Michael Davis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants